package com.cloudbroker.bcs.platform.ltb.middle.service.impl;

import com.cloudbroker.bcs.common.dao.base.DAOBase;
import com.cloudbroker.bcs.platform.ltb.bizapi.constants.type.MsgType;
import com.cloudbroker.bcs.platform.ltb.bizapi.constants.type.MsgViewType;
import com.cloudbroker.bcs.platform.ltb.middle.dao.MsgDAO;
import com.cloudbroker.bcs.platform.ltb.middle.entity.Msg;
import com.cloudbroker.bcs.platform.ltb.middle.entityview.MsgGroupCountParam;
import com.cloudbroker.bcs.platform.ltb.middle.entityview.MsgGroupCountView;
import com.cloudbroker.bcs.platform.ltb.middle.entityview.MsgListParam;
import com.cloudbroker.bcs.platform.ltb.middle.service.MsgService;
import com.cloudbroker.bcs.platform.ltb.middle.service.base.TenantServiceImplBase;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

/**
 * Created by daibd19671 on 2016/12/28.
 */
@Service
public class MsgServiceImpl extends TenantServiceImplBase<Msg, String> implements MsgService {
    @Resource
    private MsgDAO msgDAO;
    @Override
    protected DAOBase<Msg, String> getDAO() {
        return msgDAO;
    }

    @Override
    public List<MsgGroupCountView> groupCount(MsgGroupCountParam param) {
        return msgDAO.groupCount(param);
    }

    @Override
    public List<Msg> queryByType(MsgListParam msg) {
        return msgDAO.queryByType(msg);
    }

    @Override
    public List<Msg> queryCombine(MsgListParam msg) {
        return msgDAO.queryCombine(msg);
    }

    @Override
    public List<Msg> groupLastMsg(MsgGroupCountParam param) {
        return msgDAO.groupLastMsg(param);
    }
}
